<template>
  <n-config-provider :theme="!darkTheme" :locale="zhCN" :theme-overrides="themeOverrides">
    <n-notification-provider>
      <n-message-provider>
        <RouterView />
      </n-message-provider>
    </n-notification-provider>
  </n-config-provider>
</template>

<script setup lang="ts">
import { RouterView } from 'vue-router'
import { darkTheme,zhCN, type GlobalThemeOverrides } from 'naive-ui'

const themeOverrides: GlobalThemeOverrides = {
  common: {
    primaryColor: '#4098fc',
    primaryColorHover: '#4098fc',
    primaryColorPressed: '#4098fc',
    primaryColorSuppl: '#4098fc',
  }
}
</script>